package com.buba.goods.dao;

import com.buba.goods.pojo.ItemsType;
import com.buba.goods.pojo.MatterInfo;
import com.buba.goods.pojo.MatterPrice;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface MatterMapper {
    Integer addMatterPrice(Map<String, Object> map);

    Long selMatterPriceCount(Map<String, Object> map);

    List<MatterPrice> selMatterPrice(Map<String, Object> map);

    Integer delMatterPriceAll(List<String> list);

    Integer addMatterInfo(Map<String, Object> map);

    Long selMatterInfoCount(Map<String, Object> map);

    List<MatterInfo> selMatterInfo(Map<String, Object> map);

    Integer delMatterInfoAll(List<String> list);

    Integer updMatterInfo(Map<String, Object> map);

    Integer updMatterPrice(Map<String, Object> map);

    List<MatterPrice> selMatterPriceByExcel();

    List<MatterInfo> selMatterInfoItemsInfoNo();

    Integer selMatterPriceByNo(Map<String, Object> map);

    void addMatterPrice2(MatterPrice matterPrice);

    List<ItemsType> selItemsType();

    String selItemsTypeById(String itemsTypeId);

    List<MatterInfo>  selMatterInfoItemsInfoNo1();

    Integer selMatterInfoItemsInfoNo2(String itemsTypeId);
}
